package com.seeqool.v1.chartframes;

import org.jfree.chart.ChartFactory;
import org.jfree.chart.ChartPanel;

import com.seeqool.v1.datamodel.SQLTable;
import com.seeqool.v1.dataviews.PieView;

public class PieChartFrame extends BaseChartFrame {

	private static final long serialVersionUID = 1L;

	public PieChartFrame(SQLTable queryResult, int majorAxis, int minorAxis) {
		super("Pie Chart");
		PieView data = new PieView(queryResult, majorAxis, minorAxis);
		addContent(new ChartPanel(ChartFactory.createPieChart(data.getTitle(), data, false, true, false))); //cdata
	}
}
